package top.toptimus.dto.recipe;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;


/**
 * 工艺设计知识库DTO
 *
 * @author zhulan
 */
@NoArgsConstructor
@Data
@AllArgsConstructor
public class CraftDesignDTO {
    private String id;      //  id
    private String code;    //  编码
    private String desc;    //  工艺设计要求项
    private List<CraftDesignItemDTO> craftDesignItemDTOList = new ArrayList<>();

    public CraftDesignDTO(
            String id,
            String code,
            String desc
    ) {
        this.id = id;
        this.code = code;
        this.desc = desc;
    }

    public CraftDesignDTO build(List<CraftDesignItemDTO> craftDesignItemDTOList){
        this.craftDesignItemDTOList = craftDesignItemDTOList;
        return this;
    }
}
